
<section class="container promotions-index">

  <% @promotions.each_slice(2).each do |sliced| %>
    <div class="row">
      <% sliced.each do |promotion| %>
        <div class="col-xs-6 item">
          <a class="item-img-panel" href="<%= promotion_path promotion %>" style="background-image: url(<%= promotion.main_img %>)">
            <%# unless promotion.main_img %>
              <%# <div class="none">无促销图片</div> %>
            <%# else %>
              <%#= image_tag promotion.main_img %>
            <%# end %>
          </a>
          <div class="info">
            <h1><%= promotion.title %></h1>
            <p><%= promotion.summary.blank? ? '暂无活动介绍' : promotion.summary %></p>
          </div>
        </div>
      <% end %>
    </div>
  <% end %>

  <!--
  <div class="row margin-reset text-center load-more">
    <a href="">
      加载更多
      <i class="fa fa-angle-double-right"></i>
    </a>
  </div>
  -->

</section>
